{template header.html}
<script type="text/javascript">
function dr_get_code(cname, type) {
	var body = '<div style="padding:20px;font-size:14px">';
    if (type == 1) {
        body+= '{'+'dr_var("'+cname+'")'+'}';
    } else if (type == 0) {
        body+= '{'+'if dr_var("'+cname+'")'+'}';
        body+= '   {lang("yes")}   ';
        body+= '{'+'else'+'}';
        body+= '   {lang("no")}   ';
        body+= '{'+'/if'+'}';
    }
    body+= '</div>';
	var throughBox = art.dialog.through;
	throughBox({
		content: body,
		title: "{lang('html-472')}"
	});
}
</script>
<div class="subnav">
	<div class="content-menu ib-a blue line-x">
		{$menu}
	</div>
	<div class="bk10"></div>
	<div class="explain-col">
        <font color="gray">{lang('html-814')}</font>
	</div>
	<div class="bk10"></div>
	<div class="table-list">
		<form action="" method="post" name="myform" id="myform">
		<table width="100%">
		<thead>
		<tr>
			<th width="20" align="right"><input name="dr_select" id="dr_select" type="checkbox" onClick="dr_selected()" />&nbsp;</th>
            <th width="60" align="left">{lang('html-028')}</th>
			<th width="150" align="left">{lang('html-026')}</th>
            <th width="120" align="left">{lang('html-176')}</th>
			<th align="left" class="dr_option">{lang('html-815')}</th>
		</tr>
		</thead>
		<tbody>
		{loop $list $t}
		<tr>
			<td align="right"><input name="ids[]" type="checkbox" class="dr_select" value="{$t['id']}" />&nbsp;</td>
            <td align="left">{$ci->type[$t['type']]}</td>
            <td align="left">{$t['name']}</td>
            <td align="left">{$t['cname']}</td>
			<td align="left" class="dr_option">
                {if $t.type == 0}
                {if $t.value}
                <a class="alist" href="javascript:;">{lang('yes')}</a>
                {else}
                <a class="adel" href="javascript:;">{lang('no')}</a>
                {/if}
                {else if $t.type == 1}
                <a class="ago" href="javascript:;">{dr_strcut($t.value, 30)}</a>
                {/if}
			{if $this->ci->is_auth('admin/sysvar/edit')}<a class="aedit" href="{dr_dialog_url(dr_url('sysvar/edit',array('id'=>$t['id'])), 'edit')}">{lang('edit')}</a>{/if}
            <a class="alist" href="javascript:;" onclick="dr_get_code('{$t.cname}', '{$t.type}')">{lang('html-472')}</a>
			</td>
		</tr>
		{/loop}
		<tr>
			<th width="20" align="right"><input name="dr_select" id="dr_select" type="checkbox" onClick="dr_selected()" />&nbsp;</th>
			<td colspan="5" align="left" style="border:none">
			{if $this->ci->is_auth('admin/sysvar/del')}<input type="button" class="button" value="{lang('del')}" name="option" onClick="dr_confirm_set_all('{lang('015')}')" />{/if}
			</td>
		</tr>
		</tbody>
		</table>
		</form>
        <div id="pages"><a>{dr_lang('html-346', $total)}</a>{$pages}</div>
	</div>
</div>
{template footer.html}